<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateConvertTokensTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('convert_tokens', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->bigInteger('convert_record_id')->index()->comment('合成记录ID');
            $table->string('token_id', 64)->comment('资产TOKEN_ID');
            $table->string('trans_type', 16)->comment('流转类型，入账/回收');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('convert_tokens');
    }
}
